package com.javase.base.oop;

/**
 * @author zq
 * @Date: 2020/6/11
 */
public class Person {

    public void overFunction(String name){
        System.out.println("Person类中的名字是："+name);
    }

    private String name;
    private int age;

    public Person(String name){
        this.name = name;
        System.out.println("Person类中人名："+this.name);
    }

    public Person(){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
